<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>文章列表--layui后台管理模板 2.0</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="../../../public/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="../../../public/plugin/zTree/css/zTreeStyle/zTreeStyle.css" type="text/css">
	<link rel="stylesheet" href="../../../public/css/public.css" media="all" />
	<style>
		.sc h3{font-size: 20px; margin-bottom: 10px;}

		.sm div{ text-align: center; margin-top: 15%;}
		.sm div i{display: block; color:#009688; font-size: 66px; margin-bottom: 30px;}
	</style>
</head>

<body class="childrenBody">
	
	<div class="layui-tab layui-tab-brief" lay-filter="demoTitle">
		<ul class="layui-tab-title">
			<li class="layui-this">扫码入库</li>
			<li>生成条码</li>
		</ul>
		
        <div class="layui-tab-content">

			<div class="layui-tab-item layui-show">				
				<blockquote class="layui-elem-quote layui-row sc">
					<h3>入库流程</h3>
					<p>情形1. 已有条码的（大多数），点击上方“扫码入库”，按照系统会自动打开摄像头，扫码后核对信息并确认</p>
					<p>情形2. 没有条码的，点击右侧“生成条码”，填具商品信息，系统会自动打印条码，粘贴后再进行情形1操作</p>
					<p>(第一次进入或者不清楚流程时请仔细阅读以上说明)</p>
				</blockquote>
				
				<div class="layui-col-sm3">
					<fieldset class="layui-elem-field layui-field-title">
						<legend>商品目录</legend>
					</fieldset>
					<ul id="treeDemo" class="ztree">
					</ul>
				</div>
				<div class="layui-col-sm8 layui-col-sm-offset1 sm">
					<fieldset class="layui-elem-field layui-field-title">
						<legend>商品信息</legend>
					</fieldset>
					<div class="layui-col-md3 layui-col-md-offset3 layui-col-xs4  layui-col-xs-offset2">
						<i class="iconfont icon-tiaoma1"></i>
						<button class="layui-btn layui-btn-lg layui-btn-radius">扫 码 入 库</button>
					</div>
					<div class="layui-col-md3 layui-col-xs4">
						<i class="iconfont icon-biaoge"></i>
						<button class="layui-btn layui-btn-lg layui-btn-primary layui-btn-radius">入 库 历 史</button>
					</div>
				</div>
			</div>


			<div class="layui-tab-item layui-col-space15">
				<div class="layui-col-lg3 layui-col-sm4">
					<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
						<legend>条码生成</legend>
					</fieldset>
					<form class="layui-form" id="addForm">

						<div class="layui-form-item" id="type" >
							<label class="layui-form-label"><span style="color: red">*</span>物资名称</label>
							<div class="layui-input-block">
								<select id="proName" name="proName" lay-verify="required" >
									<option value="">请选择</option>
									<option value="办公用品" >电脑</option>
									<option value="生活用品">笔记本</option>
									<option value="盆栽">打印机</option>
									<option value="盆栽">电脑桌</option>
								</select>
							</div>
						</div>

						<div class="layui-form-item">
							<label class="layui-form-label"><span style="color: red">*</span>数量</label>
							<div class="layui-input-block">
								<input type="text" name="thresholdValue" lay-verify="required|number|thresholdValue" placeholder="请输入" autocomplete="off" class="layui-input required">
							</div>
						</div>

						<div class="layui-form-item">
							<div class="layui-input-block">
								<a class="layui-btn" lay-submit lay-filter="addCodeFilter">确认生成</a>
							</div>
						</div>
					</form>

				</div>

				<div class="layui-col-lg8 layui-col-lg-offset1 layui-col-sm8">
					<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
						<legend>条码历史记录</legend>
					</fieldset>

					<blockquote class="layui-elem-quote layui-search-quote layui-row">
						<form class="layui-form" id="searchFrom">

							<div class="layui-col-md4">
								<div class="layui-form-item">
									<label class="layui-form-label" >物资名称</label>
									<div class="layui-input-block">
										<input type="text" class="layui-input "  name="proName"  placeholder="请输入物资名称">
									</div>
								</div>
							</div>

							<div class="layui-col-md4 btn-search">
								<div class="layui-form-item">
									<a class="layui-btn search_btn" data-type="reload" id="search_btn">搜索</a>
									<button class="layui-btn layui-btn-primary search_btn" data-type="reload">重置</button>
								</div>
							</div>
						</form>
					</blockquote>

					<table id="codeMenu" lay-filter="codeList"></table>
					<script type="text/html" id="editTable">
						<a class="iconfont icon-edit3 icon-daochu" title="打印条码" lay-event="print"></a>
						<a class="iconfont icon-edit3 icon-detail" title="查看物资信息" lay-event="look"></a>
					</script>
				</div>
			</div>
		</div>
	</div>


	<img src="../../../public/images/wave02.png" style="position: fixed; left:0;  bottom: 0; margin: 0 -10px; width: 100%;">


<script type="text/javascript" src="../../../public/js/jquery.min.js"></script>
<script type="text/javascript" src="../../../public/layui/layui.js"></script>
<script type="text/javascript" src="../../../public/plugin/zTree/js/jquery.ztree.core.js"></script>
<script type="text/javascript" src="egList.js"></script>
<script>

layui.use(['form', 'element', 'laydate'], function() {
	var form = layui.form,
		element = layui.element;
	laydate = layui.laydate;
});
	

// zTree 的参数配置，深入使用请参考 API 文档（setting 配置详解）
var setting = {};
// zTree 的数据属性，深入使用请参考 API 文档（zTreeNode 节点数据详解）
var zNodes = [
	{
        name: "节点1",
        open: true,
        children: [
			{
            	name: "节点1_1"
			},
			{
				name: "节点1_2"
			},
			{
				name: "节点1_3"
			},
			{
				name: "节点1_4",
        		open: true,
				children: [
					{
						name: "节点1_4_1"
					},
					{
						name: "节点1_4_2"
					},
					{
						name: "节点1_4_3"
					},
					{
						name: "节点1_4_4",
						open: true,
						children: [
							{
								name: "节点1_4_4_1"
							},
							{
								name: "节点1_4_4_2"
							},
							{
								name: "节点1_4_4_3"
							},
							{
								name: "节点1_4_4_4",
								open: true,
								children: [
									{
										name: "节点1_4_4_4_1"
									},
									{
										name: "节点1_4_4_4_2"
									},
									{
										name: "节点1_4_4_4_3"
									},
								]
							},
						]
					},
				]
			},
		]
    },
	{
		name: "节点2",
		open: true,
        children: [
			{
            	name: "节点2_1"
			},
			{
				name: "节点2_2"
			},
		]
    },
	{
		name: "节点3",
		open: true,
        children: [
			{
            	name: "节点3_1"
			},
			{
				name: "节点3_2"
			},
		]
    },
];
$(document).ready(function () {
    zTreeObj = $.fn.zTree.init($("#treeDemo"), setting, zNodes);
});
</script>
</body>
</html>